<%@ page import="com.group1.bookmanagement.domain.User" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>鱼巷猫未归</title>
<link rel="stylesheet" type="text/css" href="${ctx}/jsp/css/main.css">
<link rel="stylesheet" type="text/css" href="${ctx}/jsp/css/materialize.css">
<script type="text/javascript" src="${ctx}/jsp/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="${ctx}/jsp/js/xiaoguo.js"></script>
<script type="text/javascript" src="${ctx}/jsp/js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="${ctx}/jsp/js/materialize.js"></script>
<title>鱼书</title>

</head>
<body>
	<div class="header">
		<div class="header-name">
			<p style="margin-bottom: 0px; margin-top: 0px;">鱼巷猫未归</p>
		</div>
		<div class="header-text">
			<ul class="text11">
				<li>
				    <a href="${ctx}/bookAction_toIndex" style="color: #ea6f5a; font-size: 18px;">首页</a>
				</li>
				<li style="padding-left: 30px">
				    <a href="${ctx}/labelAction_listLabel" style="color: #ea6f5a; font-size: 18px;">分类</a>
				</li>
			</ul>
		</div>
		<div class="header-right">
		    <%
		        User user = (User) session.getAttribute("user");
		        if (user != null) {
		    %>
		        <a href="${ctx}/jsp/user_edit.jsp" class="dengluaa">${user.nickName}</a>
                <a href="${ctx}/userAction_logout" class="dengluaa" style="margin-left:20px;">退出</a>
                <a href="${ctx}/jsp/book_add.jsp" class="right-shangjia">上架书籍</a>
		    <%    	
		        } else {
		    %>
		        <a href="${ctx}/userAction_toLogin" class="dengluaa">登录</a>
                <a href="${ctx}/jsp/register.jsp" class="right-zhuce">注册</a>
		    <%    	
		        }
		    %>
		</div>
	</div>
	<div class="piShow">
		<div class="picture1">
			<ul class="picture1-main">
				<li class="picture1-panel"><a href="" target="_blank"><img
						src="${ctx}/jsp/img/LF4.png"></a></li>
				<li class="picture1-panel"><a href="" target="_blank"><img
						src="${ctx}/jsp/img/LF2.jpg"></a></li>
				<li class="picture1-panel"><a href="" target="_blank"><img
						src="${ctx}/jsp/img/LF3.jpg"></a></li>
				<li class="picture1-panel"><a href="" target="_blank"><img
						src="${ctx}/jsp/img/index-bgn.jpg"></a></li>
			</ul>
			<div class="picture1-extra">
				<ul class="picture1-nav" type="square">
					<li class="picture1-item">1</li>
					<li class="picture1-item">2</li>
					<li class="picture1-item">3</li>
					<li class="picture1-item">4</li>
				</ul>
			</div>
			<div class="picture1-page">
				<a class="picture1-pre" style="top: 63% href="javascript:;"><</a> <a
					class="picture1-next" href="javascript:;" style="left: 850px;">></a>
			</div>

		</div>
	</div>
	<div class="blshow">
		<a href="#"> <img src="${ctx}/jsp/img/r1.png">
		</a> <a href="#"> <img src="${ctx}/jsp/img/r2.png">
		</a> <a href="#"> <img src="${ctx}/jsp/img/r3.png">
		</a> <a href="#"> <img src="${ctx}/jsp/img/r4.png">
		</a> <a href="#"> <img src="${ctx}/jsp/img/r5.png">
		</a>
	</div>
	<div class="xian"
		style="width: 700px; border: 1px solid #333; position: absolute; left: 152px; top: 399px; border-top: none;"></div>
	<div class="bookshow">
		<ul class="bookshowul">
		    <c:forEach items="${list}" var="item">
			    <li class="bookshowli" id="only">
	                <div class="booklistimg">
	                    <a href=""><img src="${item.cover.url}" width="100%"
	                        height="100%" /></a>
	                </div>
	                <div class="booklisttext">
	                    <a href="">书名：《${item.bookName}》</a>
	                    <p>作者：${item.authorName}</p>
	                    <p>金额：${item.price}元</p>
	                    <p>出版社：${item.press}</p>
	                </div>
	                <div class="booklistjj">
	                    <span>简介：</span>
	                    <p>${item.introduction}</p>
	                </div>
	            </li>
		    </c:forEach>
		</ul>
	</div>
	<div class="author-show">
		<div class="author-show-header">
			<p>作者推荐</p>
		</div>
		<div class="author-show-list">
			<ul class="listlist">
				<li><a class="lista" href=""><img
						src="${ctx}/jsp/img/TX1.jpg" /></a> <a href="" class="listaa">雷鸿羽</a>
					<br /> <span class="listaaa">写了72K字，182喜欢</span> <a class="listb"
					href="">+查看</a></li>

				<li><a class="lista" href=""><img
						src="${ctx}/jsp/img/TX7.jpg" /></a> <a href="" class="listaa">余茗浩</a>
					<br /> <span class="listaaa">写了52K字，912喜欢</span> <a class="listb"
					href="">+查看</a></li>

				<li><a class="lista" href=""><img
						src="${ctx}/jsp/img/TX3.jpg" /></a> <a href="" class="listaa">张琴</a>
					<br /> <span class="listaaa">写了952K字，123喜欢</span> <a class="listb"
					href="">+查看</a></li>

				<li><a class="lista" href=""><img
						src="${ctx}/jsp/img/TX4.jpg" /></a> <a href="" class="listaa">孙玉涵</a>
					<br /> <span class="listaaa">写了52K字，912喜欢</span> <a class="listb"
					href="">+查看</a></li>

				<li><a class="lista" href=""><img
						src="${ctx}/jsp/img/TX5.jpg" /></a> <a href="" class="listaa">张黎</a>
					<br /> <span class="listaaa">写了52K字，912喜欢</span> <a class="listb"
					href="">+查看</a></li>
			</ul>
			<button class="btn waves-effect waves-light" id="chakangengduo"
				type="submit" name="action">
				查看更多 <i class="material-icons right">Go</i>
			</button>
			<style>
			#chakangengduo {
				width: 310px;
			}
			</style>
		</div>
	</div>
</body>
</html>
